{template '_header'}
<link rel="stylesheet" href="../addons/ewei_shopv2/plugin/sns/template/mobile/default/images/common.css" />
<div class='fui-page  fui-page-current'>
	{if is_h5app()}
	<div class="fui-header">
		<div class="fui-header-left"></div>
		<div class="title">{php echo m('plugin')->getName('sns')}</div>
		<div class="fui-header-right"></div>
	</div>
	{/if}
	<div class='fui-content navbar'>

		{if !empty($advs)}
			<div class='fui-swipe' data-transition="500" data-gap="1">
			    <div class='fui-swipe-wrapper'>
				{loop $advs $adv}
					<a class='fui-swipe-item external' href="{if !empty($adv['link'])}{$adv['link']}{else}javascript:;{/if}"><img src="{php echo tomedia($adv['thumb'])}" /></a>
				{/loop}
			    </div>
			    <div class='fui-swipe-page'></div>
			</div>
		{/if}


		{if count($category)>0}
			<div class="fui-icon-group noborder circle" style="margin-top:0;">
				{loop $category $cate}
					<a href="{php echo mobileUrl('sns/board/lists', array('cid'=>$cate['id'],'page'=>1))}" data-nocache="true">
						<div class="fui-icon-col">
							<div class="icon"><img data-lazy="{php echo tomedia($cate['thumb'])}"/></div>
							<div class="text">{$cate['name']}</div>
						</div>
					</a>
				{/loop}
			</div>
		{/if}

		<div class="fui-cell-group qa-title">
			<div class="fui-cell">
				<div class="fui-cell-text">推荐版块</div>
				<a class="fui-cell-remark external" href="{php echo mobileUrl('sns/board/lists')}">全部</a>
			</div>
		</div>

		<div class="fui-list-group" style="margin-top:0;">
			{loop $recommands $value}
			<a class="fui-list external" href="{php echo mobileUrl('sns/board',array('id'=>$value['id']))}">
				<div class="fui-list-media">
					<img data-lazy="{php echo tomedia($value['logo'])}" class="round">
				</div>
				<div class="fui-list-inner">
					<div class="row">
						<div class="row-text">{$value['title']}</div>
						<div class="angle"></div>
					</div>
					<div class='text'>话题数: <span class='text-danger'>{$value['postcount']}</span> 关注数:<span class="text-danger">{$value['followcount']}</span></div>
					<div class="text">{$value['desc']}</div>
				</div>
			</a>
			{/loop}
		</div>
     	{template '_copyright'}
	</div>
</div>
{php $this->footerMenus()}
{template '_footer'}
